<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>店铺名称</title>
</head>
<body>
<form action="" method="post" id="form">
    <div class="wrap-shopname">
        <div class="header">
            <p>持卡人姓名</p>
            <img src="__STATIC__/img/back.png" class="back"
                 onclick=window.location.href="{:url('mobile/shop_auth/shop_info')}";>
            <span><a href="javascript:void(0);" id="save">保存</a></span>
        </div>
        <div class="name">
            <input type="search" style="margin-left: 5%" name="bank_name" value="{$bank_name}"datatype="zh4" nullmsg="持卡人姓名不能为空"
                   placeholder="请输入持卡人姓名" errormsg="姓名填写不正确">
        </div>
    </div>
</form>
{include file="public/src" /}
<script>
    //Validform
    $(function () {
        $.Tipmsg.r = null;
        $.Datatype.zh4 = /^[\u4e00-\u9fa5]{2,4}$/;
        $('#form').Validform({
            tiptype: function (msg) {
                layer.open({content: msg, skin: 'msg', time: 2});
            },
            btnSubmit: '#save',
            tipSweep: true,
            ajaxPost:true,
            callback:function (t) {
                layer.open({content:t.message,skin:'msg',time:2});
                if (t.code == 200){
                    setTimeout(function () {
                        window.location.href = "{:url('mobile/shop_auth/shop_info')}";
                    },2000)
                }
            }
        })
    });
</script>
</body>
</html>